//
//  AppDelegate.swift
//  HDCWeibo
//
//  Created by 黄德超 on 16/3/28.
//  Copyright © 2016年 黄德超. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
       
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        window?.backgroundColor = UIColor.whiteColor()
        window?.makeKeyAndVisible()
        
        //设置主题颜色
        setThemeColor()
        
        //设置根视图控制器
        window?.rootViewController = MainViewController()
        return true
    }
    private func setThemeColor(){
        UINavigationBar.appearance().tintColor = themeColor
        UITabBar.appearance().tintColor = themeColor
    }


}

